package com.at.c08_heap.overview;

/**
 * 堆栈引用
 * 见PPT第4页，堆核心概述
 *
 * @author huangchao E-mail:fengquan8866@163.com
 * @version 创建时间：2024/7/3 23:06
 */
public class SimpleHeap {
    private int id;

    public SimpleHeap(int id) {
        this.id = id;
    }

    public void show() {
        System.out.println("My ID is " + id);
    }

    public static void main(String[] args) {
        SimpleHeap s1 = new SimpleHeap(1); // new
        SimpleHeap s2 = new SimpleHeap(2); // new
        int[] arr = new int[10]; // newarray
        Object[] arr1 = new Object[10]; // anewarray
    }
}
